package com.shu.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.shu.entity.SysUser;
import com.shu.service.SysUserService;

@Controller
@RequestMapping("/user")
public class UserController {
	
	@Autowired
	private SysUserService userService;
	
	@RequestMapping("/name")
	public @ResponseBody String getUserName() {
		return "tree.cai";
	}

	
//	@RequestMapping()
//	@ResponseBody
//	public SysUser defaultMethod() {
//		SysUser user = new SysUser();
//		user.setAccount("tree.cai");
//		return userService.
//	}
	

}
